<%@ taglib uri="http://www.springframework.org/spring-social/facebook/tags" prefix="facebook" %>
<%@ page session="false" %>
<html>
	<head>
		<title>Spring Social Facebook</title>
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
	</head>
	<body>
		<form id="fb_signin" action="auth.do" method="post">
			<div class="formInfo">
	    	</div>
		    <div id="fb-root"></div>	
		    <p><fb:login-button onlogin="$('#fb_signin').submit();" v="2" length="long">Connect to Facebook</fb:login-button></p>
		</form>
		
		<facebook:init appId="YOUR_APP_ID"/>
		<script type="text/javascript">
			FB.getLoginStatus(function(response) {
		    	  if (response.session) {
		    		    FB.logout();//always logout when we hit this page
		    	  }
		    	});
		</script>
	</body>
</html>
